package com.bdqn.Service.Material.impl;

import com.bdqn.Service.Material.MaterialService;
import com.bdqn.entity.Material;
import com.bdqn.mapper.Material.MaterialMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MaterialimplService implements MaterialService {
    @Resource
    MaterialMapper materialMapper;
    @Override
    public List<Material> findByMaterial(Material mat,int page,int limit) {
        return materialMapper.findByMaterial(mat,page,limit);
    }

    @Override
    public int count(Material mat, int page,int limit) {
        return materialMapper.count(mat,page,limit);
    }

    @Override
    public List<Material> findByListId(int page, int limit, List ids) {
        return materialMapper.findByListId(page, limit, ids);
    }

    @Override
    public int countListId(List ids) {
        return materialMapper.countListId(ids);
    }

    @Override
    public List<Material> findAll() {
        return materialMapper.findAll();
    }

    @Override
    public List<Material> selectmaterial(Integer page, Integer limit, String name) {
        return materialMapper.selectmaterial(page,limit,name);
    }

    @Override
    public int materialcount(String  m) {
        return materialMapper.materialcount(m);
    }

}
